import request from '@/utils/request'

// 查询菜品展示列表
export function listDishlist(query) {
  return request({
    url: '/showlist/dishlist/list',
    method: 'get',
    params: query
  })
}

// 查询菜品展示详细
export function getDishlist(dishid) {
  return request({
    url: '/showlist/dishlist/' + dishid,
    method: 'get'
  })
}

// 新增菜品展示
export function addDishlist(data) {
  return request({
    url: '/showlist/dishlist',
    method: 'post',
    data: data
  })
}

// 修改菜品展示
export function updateDishlist(data) {
  return request({
    url: '/showlist/dishlist',
    method: 'put',
    data: data
  })
}

// 删除菜品展示
export function delDishlist(dishid) {
  return request({
    url: '/showlist/dishlist/' + dishid,
    method: 'delete'
  })
}
